*------------------------------------------------------------------------------
* translate smcl file to txt file 
*==============================================================================
global home_dir "/N/project/suicide_study/pnas_replication"

cd  "${home_dir}/results/log"

local files: dir . files "*.smcl"

foreach f of local files {
	di "`f'"
	local newf: subinstr local f ".smcl" ".txt", all 
	translate "`f'" "`newf'", replace
}





